import PySpice

print "Testing the Spice popup"


string_to_print = 'This is a test of the two-button timed popup in SPICE \n This should be issued from Python \n If you see it, everything worked - the box should vanish in 60 s if nothing is clicked'
timeout = 60
truebutton = 'Popup OK'
falsebutton = 'Cancel'
title = 'Popup test'
timeoutreturn = 0
popupreturn=PySpice.twobuttontimed(string_to_print,timeout,timeoutreturn,truebutton,falsebutton,title)

print "The value returned was"
print popupreturn
